import request from "@/utils/request";

// 查询礼品兑换列表
export function listConvert(query) {
  return request({
    url: "/library/mbGiftConvert/list",
    method: "get",
    params: query,
  });
}

// 查询礼品兑换详细
export function getConvert(id) {
  return request({
    url: "/library/mbGiftConvert/" + id,
    method: "get",
  });
}

// 新增礼品兑换
export function addConvert(data) {
  return request({
    url: "/library/mbGiftConvert",
    method: "post",
    data: data,
  });
}

// 修改礼品兑换
export function updateConvert(data) {
  return request({
    url: "/library/mbGiftConvert",
    method: "put",
    data: data,
  });
}

// 删除礼品兑换
export function delConvert(id) {
  return request({
    url: "/library/mbGiftConvert/" + id,
    method: "delete",
  });
}
